/**
 * 设置-> 语言相关请求
 */
import { GET, POST } from "./xhr";

// 请求所有语言
export const fetchAll = async () => await GET("/api/language/all");

// 新增语言
export const fetchAdd = async (data: any) =>
  await POST("/api/language/add", data);

// 更新语言
export const fetchUpdate = async (data: any) =>
  await POST("/api/language/update", data);

// 删除语言
export const fetchDelete = async (data: any) =>
  await POST("/api/language/delete", data);
